<template>
	<view class="icons">
		<view class="icons-item" v-for="(item,index) in dataList" :key="index">
			<image class="icons-img" :src="item.imgUrl" mode=""></image>
			<text class="icons-name">{{item.name}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				iconList: [{
						imgUrl: "/static/tabbar/me.png",
						name: "运动鞋"
					},
					{
						imgUrl: "/static/tabbar/me-choose.png",
						name: "运动鞋"
					},
					{
						imgUrl: "/static/tabbar/home.png",
						name: "运动鞋"
					},
					{
						imgUrl: "/static/tabbar/home-choose.png",
						name: "运动鞋"
					},
					{
						imgUrl: "/static/tabbar/cart.png",
						name: "运动鞋"
					},
					{
						imgUrl: "/static/tabbar/cart-choose.png",
						name: "运动鞋"
					},
					{
						imgUrl: "/static/tabbar/classify.png",
						name: "运动鞋"
					},
					{
						imgUrl: "/static/tabbar/classify-choose.png",
						name: "运动鞋"
					}
				]
			}
		},
		props: {
			dataList: Array
		}
	}
</script>

<style lang="scss" scoped>
	.icons {
		display: flex;
		flex-wrap: wrap;

		.icons-item {
			width: 25%;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			padding-top: 20rpx;
			font-size: 32rpx;

			.icons-img {
				width: 100rpx;
				height: 100rpx;
			}
		}
	}
</style>
